package com.vxdata.utils.modules.excel.easypoi.vo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelCollection;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

/**
 * 维护工单列表导出
 */
@Data
public class OrderRepairExcelVo {

    private String id;
    /**
     * 工单信息
     */
    @Excel(name = "工单号", needMerge = true)
    private String orderId;

    @Excel(name = "审请标题", needMerge = true)
    private String title;

    @Excel(name = "工单状态", needMerge = true)
    private String status;

    @Excel(name = "工单开始时间", format = "yyyy-MM-dd HH:mm:ss", needMerge = true)
    private LocalDateTime startTime;

    @Excel(name = "工单结束时间", format = "yyyy-MM-dd HH:mm:ss", needMerge = true)
    private LocalDateTime orderEndTime;

    @Excel(name = "审请时间", format = "yyyy-MM-dd HH:mm:ss", needMerge = true)
    private LocalDateTime applyTime;

    @Excel(name = "审请人", needMerge = true)
    private String applicant;

    @Excel(name = "维护人", needMerge = true)
    private String opsClainUserName;

    private Long dept;

    @Excel(name = "所在部门", needMerge = true)
    private String deptName;

    @Excel(name = "电子邮件", needMerge = true)
    private String email;

    @Excel(name = "优先级", needMerge = true)
    private String priority;

    @Excel(name = "问题描述", needMerge = true)
    private String problemDescription;


    @ExcelCollection(name = "故障设备信息", orderNum = "4")
    private List<AccidentInfoExcelVo> accidentInfoExcelVoList;
}
